package com.itxiao.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (OrderItem)表实体类
 *
 * @author makejava
 * @since 2025-10-12 17:07:25
 */
@Data
@TableName("order_item")
@AllArgsConstructor
@NoArgsConstructor
public class OrderItem  {
    //订单ID

    @TableId(type = IdType.AUTO)
    private Long id;
    //订单号
    private String orderNo;
    //下单用户ID
    private Long userId;
    //店铺id
    private Integer shopId;
    //下单总金额
    private Long totalPrice;
    //运费
    private Long freightPrice;
    //商品价格
    private Long salePrice;
    //订单状态：1未支付;2已支付;3已发货;4已支付
    private Integer status;
    //订单快照图片
    private String snapImg;
    //订单快照标题
    private String snapTitle;
    //订单快照地址信息
    private String snapAddress;
    //订单快照店铺信息
    private String snapShopInfo;
    //配送方式: 0未选择;1快递;2自提
    private Integer deliveryType;
    //订单备注
    private String note;
    //取消订单原因
    private String reason;
    //创建时间
    private Date createTime;
    //最后更新时间
    private Date updateTime;
    //过期时间
    private Date expiredTime;
    //审核不通过原因
    private String auditReason;
    //父订单号
    private String parentOrderNo;
    //订单类型：1团购，2pc，3小程序
    private Integer orderType;
}